/* eslint-disable no-console */
let {
    ZPack
} = require('../build');
let plumber = require('gulp-plumber');
let path = require('path');
let gulp = require('gulp');

gulp.src(path.join(__dirname, '..', 'src/**/*.ts'))
    .pipe(plumber())
    .pipe(ZPack({
        rootPath: path.join(__dirname, '..', 'src'),
        host: 'http://jianrmod.cn/',
        recursive: true,
        concat: 'dependency'
    }))
    .pipe(gulp.dest('testBuild'));
//Module.obtain('./src/Module', cx).load().then();
//let mod2 = new Moudle('./src/Module', cx);

//mod2.load().then(e => console.log(e.contents)).catch(console.error);